package April._23.work5;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Random;
import java.util.concurrent.Callable;

public class MyCallable implements Runnable {
    @Override
    public void run() {
        Random random = new Random();
        int time = random.nextInt(10);
        try {
            Thread.sleep(time);
            System.out.println(Thread.currentThread().getName()+"睡了"+time);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
